<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Admin.AdminSearchUsers" CodeFile="AdminSearchUsers.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AdminSearchUsers</title>
    <base target="_self" />
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript">
	function CloseDialog(name, id)
	{
		window.returnValue = name + ";" + id;
		window.close();
	}  

    </script>

</head>
<body>
    <form id="SearchUsersForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table class="Header" width="100%">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:AdminSubNavigation ID="adminSubNavigation" runat="server"></cc1:AdminSubNavigation>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table class="Invisible" cellspacing="10" id="dynamicTable">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="10">
                        <tr>
                            <td class="Label" align="right">
                                UserName:&nbsp;</td>
                            <td>
                                <asp:TextBox ID="userName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:ImageButton ID="search" runat="server" ImageUrl="../Images/b_search_grey.gif"
                                    OnClick="OnSearch" /></td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Last Name:&nbsp;</td>
                            <td>
                                <asp:TextBox ID="lastName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                First Name:&nbsp;</td>
                            <td>
                                <asp:TextBox ID="firstName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0">
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataGrid ID="dataGrid" runat="server" AllowCustomPaging="True" AllowPaging="True"
                                    AllowSorting="True" AutoGenerateColumns="False" CssClass="DataGrid" OnItemCommand="OnItemCommand"
                                    OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort"
                                    Width="100%">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                    <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                    <Columns>
                                        <asp:ButtonColumn ButtonType="LinkButton" SortExpression="Name" HeaderText="Name"
                                            CommandName="SelectName"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="Username" SortExpression="Username" ReadOnly="True" HeaderText="Username">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="Organization" SortExpression="Organization" ReadOnly="True"
                                            HeaderText="Organization"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="IsRegistered" SortExpression="Registered" HeaderText="Registered">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="DomainStatus" SortExpression="DomainStatus" HeaderText="DomainStatus">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="PersonId" HeaderText="PersonId"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="LastName" HeaderText="LastName"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="FirstName" HeaderText="FirstName"></asp:BoundColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <cc2:SetFocus ID="setFocus" runat="server" FocusControl="userName"></cc2:SetFocus>
    </form>
</body>
</html>
